package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.CatalogsAttention;
import cn.wolfcode.trip.base.domain.StrategyCatalog;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCatalogService {


    PageInfo<StrategyCatalog> query(QueryObject qo);

    void saveOrUpdate(StrategyCatalog catalog);

    List<StrategyCatalog> selectCatalogByStrategyId(Long strategyId);

    /**
     *
     * @param strategyId
     * @return List<StrategyCatalog>
     */
    List<StrategyCatalog> selectCatalogForLoop(Long strategyId);



    void deleteChose(Long catalogsId, Long userId);

    void insertChose(Long catalogsId, Long userId);

    int selectLikeCountByCommentId(Long catalogsId);

    CatalogsAttention selectByCatalogsIdAndUserId(Long catalogsId, Long userId);
}
